home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / initrd.lz / initrd / scripts / init-bottom / udev < prev   
Encoding:
Text File  |  2009-10-28  |  498 b   |  29 lines

  1. #!/bin/sh -e
  2. # initramfs init-bottom script for udev
  3.  
  4. PREREQ=""
  5.  
  6. # Output pre-requisites
  7. prereqs()
  8. {
  9.     echo "$PREREQ"
  10. }
  11.  
  12. case "$1" in
  13.     prereqs)
  14.     prereqs
  15.     exit 0
  16.     ;;
  17. esac
  18.  
  19.  
  20. # Stop udevd, we'll miss a few events while we run init, but we catch up
  21. pkill udevd
  22.  
  23. # udevd might have been in the middle of something when we killed it,
  24. # but it doesn't matter because we'll do everything again in userspace
  25. rm -rf /dev/.udev/queue
  26.  
  27. # Move /dev to the real filesystem
  28. mount -n -o move /dev ${rootmnt}/dev
  29.